From: Colin Walters Date: Fri, 10 Jul 2009 21:04:39 +0000 (-0400) Subject: Small fixes for sidebar application bits X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~11210 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b45cd0a4eb3ae055b127773a8f1dc3eafe0387e8;p=gnome-shell.git Small fixes for sidebar application bits We need to set the .name property, also skip unknown apps. --- diff --git a/js/ui/widget.js b/js/ui/widget.js index 0d326ae5a..d4f661c31 100644 --- a/js/ui/widget.js +++ b/js/ui/widget.js @@ -290,6 +290,7 @@ function AppsWidgetInfo(appInfo) { AppsWidgetInfo.prototype = { _init : function(appInfo) { this._info = appInfo; + this.name = appInfo.get_name(); }, createIcon : function(size) { @@ -319,6 +320,8 @@ AppsWidget.prototype = { let apps = appSystem.get_favorites(); for (let i = 0; i < apps.length; i++) { let app = appSystem.lookup_app(apps[i]); + if (!app) + continue; this.addItem(new AppsWidgetInfo(app)); } }